<?php load_lang_file('users');?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $this->lang->line('login_page_title') ?></title>	
		<link type="text/css" href="<?php echo base_url(); ?>layout/admin/css/login.css" rel="stylesheet" />	
		<link type="text/css" href="<?php echo base_url(); ?>layout/admin/css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />	
	</head>
	<body>
	<div id="container">
		<div class="logo">
			<a href=""><img src="<?php echo base_url(); ?>layout/admin/assets/logo.png" alt="" /></a>
		</div>
		<div id="box">
			<?php 
				if(isset($error_msg))
					echo "<div class='error' style='margin-top:-20px;'>".$error_msg."</div>";
					
				$this->load->helper('form');
				echo form_open(site_url('login/validate_credentials'));
				echo '<p class="main">';
				echo "<label>".$this->lang->line('login_username')."</label>";

				echo form_input('username', set_value('username', ''));
				echo "<label>".$this->lang->line('login_password')."</label>";
				echo form_password('password', set_value('password', ''));
				echo "</p>\n<p class='space'>";
				echo form_submit(array(
						'type' => 'submit',
						'value'=> $this->lang->line('login_button'),
						'class'=> 'login_button'));
				echo anchor(site_url('login/'), "Forgot password?",array("class"=>"login_button", "style"=>"height:17px;"));
				echo "</p>";
				echo form_close();
			?>
		</div>
	</div>
	</body>
</html>